package org.example.api;

import com.framework.test.enums.HttpStatus;
import com.framework.test.utils.RestUtil;
import io.restassured.response.Response;


public class GetProjectInfoApi {

    public static Response getProjectInfo(String lastProjectId) {
        System.out.println("lastProjectId" + lastProjectId);
        return RestUtil.init()
                .baseUri("https://demo.metersphere.com")
                .path("/organization/project/list/{lastProjectId}")
                .pathParam("lastProjectId", lastProjectId)
                .expectedStatusCode(HttpStatus.OK)
                .get()
                .response();
    }
}
